<table width="100%">
<tr bgcolor="#00FFFF">
<td>道具名称</td>
<td>价格类型</td>
<td>道具价格</td>
<td>折扣</td>
<td>道具类型</td>
<td>功效</td>
<td>道具说明</td>
<td>有效时间</td>
<td>素材图片</td>
<td>上架时间</td>
<td>是否上架</td>
<td>热度排行</td>
<td>销售数量</td>
<td>操作</td>
</tr>
<?php foreach ($prop_list as $pl): ?>
<tr>
<td><?php echo $pl['sName']; ?></td>
<td>
<?php if($pl['nPriceType'] == 1): ?>金币
<?php elseif ($pl['nPriceType'] == 2): ?>虚拟币
<?php endif; ?>
</td>
<td><?php echo $pl['nPrice']; ?></td>
<td>
<?php if($pl['nRebate'] == '1.0'): ?>不打折
<?php else: ?><?php echo $pl['nRebate']*10; ?>折
<?php endif; ?>
</td>
<td>
<?php if($pl['nFun'] == 1): ?>+客人道具
<?php elseif ($pl['nFun'] == 2): ?>+经验道具
<?php elseif ($pl['nFun'] == 3): ?>+金币道具
<?php elseif ($pl['nFun'] == 4): ?>进货加速
<?php elseif ($pl['nFun'] == 5): ?>刑事道具
<?php elseif ($pl['nFun'] == 6): ?>抽奖类
<?php elseif ($pl['nFun'] == 7): ?>增益类
<?php endif; ?>
</td>
<td><?php echo $pl['nRate']; ?></td>
<td><?php echo $pl['sDescript']; ?></td>
<td><?php echo $pl['nValid']; ?></td>
<td><img src="<?php echo PROP_URL.$pl['sUrl']; ?>" border="0" width="100" height="100" /></td>
<td><?php echo date("Y-m-d H:i:s", $pl['nCrTime']); ?></td>
<td>
<?php if($pl['nOnShelf'] == 1): ?>上架
<?php elseif ($pl['nOnShelf'] == 0): ?>下架
<?php endif; ?>
</td>
<td><?php echo $pl['nHeat']; ?></td>
<td><?php echo $pl['nSells']; ?></td>
<td><a href="prop.php?act=edit&id=<?php echo $pl['id']; ?>">编辑</a> | <a href="prop.php?act=delete&id=<?php echo $pl['id']; ?>">删除</a></td>
</tr>
<?php endforeach; ?>
</table>